package com.tdkj.model.decorate;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

@Entity
@Table(name = "decorate_module_custom_buy")
public class BeanModuleCustomBuy extends BaseEntity {

	private BeanModuleCustom custom;
	private Timestamp createTime;
	
	@ManyToOne(fetch=FetchType.LAZY, cascade={CascadeType.REFRESH})
	@JoinColumn(name="custom_id")
	public BeanModuleCustom getCustom() {
		return custom;
	}
	
	public void setCustom(BeanModuleCustom custom) {
		this.custom = custom;
	}
	
	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	
}